home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gBoutons, gNumSpr, gListBtDec, gEtudAct, g1erSprLoc
- if gEtudAct = "mon" then
- set fin to g1erSprLoc + 3
- else
- set fin to g1erSprLoc + 7
- end if
- set gNumSpr to 0
- repeat with i = g1erSprLoc to fin
- if rollOver(i) then
- set gNumSpr to i
- gBoutons(appuie, gNumSpr)
- exit repeat
- end if
- end repeat
- end
-
- on mouseUp
- global gBoutons, gNumSpr, gListSuj, gSujet0, gBarChron, gMessDef1, gMessSty1, g1erSprLoc, g1erSprNav, gSprSel, gListBtDec, gListCod, gEtudAct
- curseur(1)
- if gEtudAct = "mon" then
- set fin to g1erSprLoc + 3
- else
- set fin to g1erSprLoc + 7
- end if
- set monNumSpr to -2
- repeat with i = g1erSprLoc to fin
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if monNumSpr = gNumSpr then
- MouseClick()
- else
- pass()
- end if
- end
-
- on MouseClick
- global gNumSpr, gSprSel, gBoutons, gBarChron, g1erSprLoc, g1erSprNav, gSurvolPrec, gListSuj, gListCod, gSujet0, gMessDef1, gMessSty1, gEtudAct
- if not (the doubleClick) then
- if (gNumSpr = 22) and (gEtudAct = "eur") then
- curseur(6)
- if gSprSel <> 0 then
- gBoutons(relache, gSprSel)
- end if
- set gSprSel to gNumSpr
- set moncod to word 1 of the name of cast the castNum of sprite gNumSpr
- set monNumSuj to getPos(gListCod, moncod)
- set gSujet0 to getAt(gListSuj, monNumSuj)
- set gMessDef1 to gSujet0(Le_Nom)
- if word 1 of gMessDef1 <> "Homo" then
- set gMessDef1 to word 1 of gMessDef1
- end if
- set epok to gSujet0(Le_Epoque)
- gBarChron(fleche, 0, epok, 1)
- gBarChron(fleche, 1, epok, 0)
- set gMessSty1 to "bold,italic"
- set the text of cast "Zone Info" to gMessDef1
- set the textStyle of cast "Zone Info" to gMessSty1
- set the visible of sprite (g1erSprLoc + 9) to 1
- gBoutons(habille, g1erSprNav + 1, "SUJT 1")
- set the visible of sprite (g1erSprNav + 1) to 1
- if gSujet0(Le_Statut) = "A" then
- gBoutons(habille, g1erSprNav + 2, "COMP 1")
- set the visible of sprite (g1erSprNav + 2) to 1
- else
- set the visible of sprite (g1erSprNav + 2) to 0
- end if
- gBoutons(habille, g1erSprNav + 4, "PHYL 1")
- set the visible of sprite (g1erSprNav + 4) to 1
- updateStage()
- else
- beep()
- gBoutons(relache, gNumSpr)
- set gSurvolPrec to -1
- curseur(1)
- end if
- else
- if gSprSel = 22 then
- MouseClick(script "DE:mps bt lec")
- else
- beep()
- gBoutons(relache, gNumSpr)
- set gSurvolPrec to -1
- curseur(1)
- end if
- end if
- curseur(-1)
- set gSurvolPrec to -1
- end
-